package com.zjl.search.feign;

import com.zjk.pojo.product.SearchItem;
import com.zjl.search.feign.impl.ProductFeignClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * @author: gfk
 * @create: 2022/11/4
 * @Description:
 * @FileName: ProductFeignClient
 * @History:
 * @自定义内容：
 */
@FeignClient(value = "exam5-service-product",fallback = ProductFeignClientImpl.class)
public interface ProductFeignClient {

    @PostMapping("product/findSearchItem")
    public List<SearchItem> findSearchItem(@RequestBody Map searchMap);

}
